
package com.leaves.modular.buspicturemanager.param;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.leaves.core.pojo.base.param.BaseParam;
import com.leaves.core.validation.date.SelfDateValue;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.Date;
import java.util.List;

/**
* 图片管理参数类
 *
 * @author 寻叶人
 * @date 2022-03-27 22:05:15
*/
@Data
@ApiModel("图片管理参数类")
public class BusPictureManagerParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查参数", groups = {edit.class, delete.class, detail.class})
    @ApiModelProperty("主键id")
    private Long id;

    /**
     * 图片名称
     */
    @ApiModelProperty("图片名称")
    private String pictureName;
    /**
     * 图片类型
     */
    @ApiModelProperty("图片类型")
    @NotEmpty(message = "图片类型不能为空，请检查参数", groups = {save.class})
    private String prictureType;

    /**
     * 图片描述
     */
    @ApiModelProperty("图片描述")
    @NotEmpty(message = "图片描述不能为空，请检查参数", groups = {save.class})
    private String pictureDescribe;


    @ApiModelProperty("文件id集合")
    @NotNull(message = "文件不能为空，请检查参数", groups = {save.class})
    private List<Long> fileIdList;

    /**
     * 上传时间
     */
    @NotNull(message = "上传时间不能为空，请检查参数", groups = {save.class})
    @SelfDateValue(message = "格式错误",dateFormat = "yyyy-MM-dd",groups = {singleCategory.class})
    private String saveTime;
}
